<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="css/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="css/pagination/pagination.css">
    <script src="js/jquery-3.1.1.min.js" type="text/javascript"></script>
    <script src="js/bootstrap/bootstrap.min.js" type="text/javascript"></script>
    <script src="js/jquery.pagination.js" type="text/javascript"></script>
</head>
<body>
<h4>${user.name}，登录成功</h4>
<table class="table table-condensed" style="width: 80%; margin: 0px auto">
    <thead>
    <tr>
        <th>编号</th>
        <th>标题</th>
        <th>发布时间</th>
        <th>板块</th>
        <th>发布人</th>
    </tr>
    </thead>
    <tbody>
    <s:iterator value="#attr.newsList" id="n">
        <tr>
            <td><s:property value="#n.id"/></td>
            <td><s:property value="#n.title"/></td>
            <td><s:property value="#n.writeTime"/></td>
            <td><s:property value="#n.block.blockName"/></td>
            <td><s:property value="#n.admin.adminName"/></td>
        </tr>
    </s:iterator>
    </tbody>
</table>
<div id="News-Pagination"></div>
</body>
</html>
